/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_discount_time_limit.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_DISCOUNT_TIME_LIMIT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_discount_time_limit.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_DISCOUNT_TIME_LIMIT::CTable_PPM_DISCOUNT_TIME_LIMIT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_DISCOUNT_TIME_LIMIT" );
  prepareTable();
  prepareQuery();
 
  DISCOUNT_TIME_LIMIT_ID.setField( "DISCOUNT_TIME_LIMIT_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( DISCOUNT_TIME_LIMIT_ID );
  makeKeyItem( DISCOUNT_TIME_LIMIT_ID ); 
  PRICING_SECTION_CD.setField( "PRICING_SECTION_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_CD );
  DISCOUNT_EXPRESS_ID.setField( "DISCOUNT_EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_EXPRESS_ID );
  DISCOUNT_CYCLE_TYPE.setField( "DISCOUNT_CYCLE_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( DISCOUNT_CYCLE_TYPE );
  BEGIN_TIME_TYPE.setField( "BEGIN_TIME_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( BEGIN_TIME_TYPE );
  BEGIN_CALC_OBJECT.setField( "BEGIN_CALC_OBJECT", DATA_DOUBLE, 22, 0 );
  makeTableItem( BEGIN_CALC_OBJECT );
  BEGIN_TIME_DURATION.setField( "BEGIN_TIME_DURATION", DATA_CHAR, 20, 0 );
  makeTableItem( BEGIN_TIME_DURATION );
  END_TIME_TYPE.setField( "END_TIME_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( END_TIME_TYPE );
  END_CALC_OBJECT.setField( "END_CALC_OBJECT", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_CALC_OBJECT );
  END_TIME_DURATION.setField( "END_TIME_DURATION", DATA_CHAR, 20, 0 );
  makeTableItem( END_TIME_DURATION );
}


CTable_PPM_DISCOUNT_TIME_LIMIT::CTable_PPM_DISCOUNT_TIME_LIMIT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_DISCOUNT_TIME_LIMIT" );
  prepareTable();
  prepareQuery();
 
  DISCOUNT_TIME_LIMIT_ID.setField( "DISCOUNT_TIME_LIMIT_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( DISCOUNT_TIME_LIMIT_ID );
  makeKeyItem( DISCOUNT_TIME_LIMIT_ID ); 
  PRICING_SECTION_CD.setField( "PRICING_SECTION_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_SECTION_CD );
  DISCOUNT_EXPRESS_ID.setField( "DISCOUNT_EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( DISCOUNT_EXPRESS_ID );
  DISCOUNT_CYCLE_TYPE.setField( "DISCOUNT_CYCLE_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( DISCOUNT_CYCLE_TYPE );
  BEGIN_TIME_TYPE.setField( "BEGIN_TIME_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( BEGIN_TIME_TYPE );
  BEGIN_CALC_OBJECT.setField( "BEGIN_CALC_OBJECT", DATA_DOUBLE, 22, 0 );
  makeTableItem( BEGIN_CALC_OBJECT );
  BEGIN_TIME_DURATION.setField( "BEGIN_TIME_DURATION", DATA_CHAR, 20, 0 );
  makeTableItem( BEGIN_TIME_DURATION );
  END_TIME_TYPE.setField( "END_TIME_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( END_TIME_TYPE );
  END_CALC_OBJECT.setField( "END_CALC_OBJECT", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_CALC_OBJECT );
  END_TIME_DURATION.setField( "END_TIME_DURATION", DATA_CHAR, 20, 0 );
  makeTableItem( END_TIME_DURATION );
}

CTable_PPM_DISCOUNT_TIME_LIMIT::~CTable_PPM_DISCOUNT_TIME_LIMIT( )
{
    close();
}

